<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>跳转中</title>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
    <style>
        body {
            height: 100%;
            width: 100%;
        }
        
        .verification {
            height: 100px;
            width: 100px;
            position: absolute;
            top: 50%;
            left: 50%;
            margin-top: -50px;
            margin-left: -50px;
            text-align: center;
        }
    </style>
    <script>
        $(document).ready(function() {
            var token = getQueryString("token");
            var appAcctId=getQueryString("appAcctId");
            var data={
                appAcctId:appAcctId,
                token:token
            }
            $.ajax({
                type: "get",
                url:'/hyc-3/web/open/loginFor4A',
                dataType: "json",
                headers: {
                    Token: token,
                },
                data:data,
                contentType: 'application/json',
                success: function(res) {
                    if(res.token){
                        localStorage.setItem('LG_TK', res.token)
                        window.location.href = "./#/dashboard";
                    }
                }
            });
        });

        function getQueryString(name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
            var r = window.location.search.substr(1).match(reg);
            if (r != null) return unescape(r[2]);
            return null;
        }
    </script>
</head>

<body>
    <div class="verification">
        <img src="./images/icon@2x.png">
        <div class="verification-tips">验证中...</div>
    </div>
</body>

</html>